﻿#include "trains.h"
// Get方法实现
int trains::getTrainId() const {
	return train_id;
}
std::string trains::getTrainCode() const {
	return train_code;
}
char trains::getType() const {
	return type;
}
int trains::getStartStationId() const {
	return start_station_id;
}
int trains::getEndStationId() const {
	return end_station_id;
}
// Set方法实现
void trains::setTrainId(int id) {
	train_id = id;
}
void trains::setTrainCode(std::string& code) {
	train_code = code;
}
void trains::setType(char t) {
	type = t;
}
void trains::setStartStationId(int id) {
	start_station_id = id;
}
void trains::setEndStationId(int id) {
	end_station_id = id;
}
